Add support for enabling only native windows
authorAlexander Larsson <alexl@redhat.com>
Mon, 24 Aug 2009 13:18:10 +0000 (15:18 +0200)
committerAlexander Larsson <alexl@redhat.com>
Mon, 24 Aug 2009 13:22:29 +0000 (15:22 +0200)
commita79f929dd6c89fceeaf0d9039e5a10cad9d87d2f
treefdc1ffc574efeb0879401003e649d8c524b8e108
parentdeda8b97f61329f3f23705cbf9a15fc24b657967
Add support for enabling only native windows

Some applications make weird assumtions on Gtk+ that do not work anymore
with the new client-side windows support. For instance SWT/Eclipse reorders
the stacking order of the X windows directly without telling gdk this,
which breaks gdk drawing as gdk now relies on knowing the stacking order
for window clipping.

This introduces a GDK_NATIVE_WINDOWS environment variable, which if set
causes Gtk+ to always use native windows. Its more compatible with
pre-csw Gtk+ behaviour if you do weird X-specific hacks, although it does
limit the size of GdkWindows to 65535x65535.
gdk/gdk.c
gdk/gdkdisplay.c
gdk/gdkglobals.c
gdk/gdkinternals.h
gdk/gdkwindow.c